-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Fix comparison for classes implementing __eq__. #51
base: master
Are you sure you want to change the base?
Conversation
This is a WIP, right? I'm a bit confused by the commit message that says "Fix this and that" but only adds two failing unit tests. |
Additionally we have to pin an older `Sphinx` version to keep supporting Python 2.
There are currently only two new failing tests: * Comparing an object with a proxy of the object fails (but comparing the proxy with the object is fine!) * Comparing a proxy with itself fails But these tests run fine when deleting the `__eq__` method on the `Something` class which is the class of `self.x`.
Hm, this PR does not replace the fix in zopefoundation/zope.keyreference#6. I have to investigate further. |
These changes do not help for zopefoundation/zope.keyreference#6 because they happen on the wrong end: If |
That were my internal notes but looking into the diff of this PR tells a completely different story. |
There are currently only two new failing tests:
But these tests run fine when deleting the
__eq__
method on theSomething
class which is the class ofself.x
.Fixes #50.